﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectClient.aspx.cs" Inherits="admin_SelectClient" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>选择客户</title>
                   <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
                <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>

                <style type="text/css">
                <!--
                html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
                scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
                -->
                </style>
    <base target="_self"></base>
</head>
<%     
        Response.Buffer = true;
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";   
%>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse; ">
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="客户名称："></asp:Label>
                    <asp:TextBox ID="txtClientName" runat="server" Width="90px"></asp:TextBox>
                    <asp:Button ID="btnFind" runat="server" CausesValidation="False"
                        Text="模糊查询" Font-Size="12px" OnClick="btnFind_Click" /></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" valign="top">
                    <asp:DataList ID="DataList1" runat="server" BorderColor="#77acd0"
                        BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" OnItemCommand="DataList1_ItemCommand"
                        OnItemDataBound="DataList1_ItemDataBound" Width="285px">
                        <FooterStyle BackColor="#B5C7DE" ForeColor="Black" CssClass="itemhead" />
                        <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                        <AlternatingItemStyle BackColor="#F7F7F7" />
                        <ItemStyle BackColor="White" ForeColor="Black" HorizontalAlign="Center" />
                        <HeaderStyle Font-Bold="True" ForeColor="Black" CssClass="itemhead" HorizontalAlign="Center"/>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("ClientId") %>'
                                CommandName="selectData" Text='<%# Eval("ClientName").ToString().Length>20?Eval("ClientName").ToString().Substring(0,20)+"...":Eval("ClientName") %>'></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderTemplate>
                            <asp:Label ID="Label4" runat="server" Text="选择客户（最多显示10条）"></asp:Label>
                        </HeaderTemplate>
                        <FooterTemplate>
                            <table style="width: 265px">
                                <tr>
                                    <td align="right" colspan="2">
                                        <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">上一页</asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click">下一页</asp:LinkButton></td>
                                </tr>
                            </table>
                        </FooterTemplate>
                    </asp:DataList>
                </td>
            </tr>
            <tr>
                <td align="right" valign="top" bgcolor="#FFFFFF" background="../images/Snap1.jpg">
                    <input id="Button1" style="font-size: 12px" type="button" value="关闭" onclick="window.close()"/></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
